/*************************************************************************
> File Name: 02_test_stu.cpp
> Author: hzy
> Created Time: 2023-08-09 09:46:09
> Description:
************************************************************************/
#include <iostream>

using namespace std;

class Stu
{
private:
    int id;
    string name;
    int age;

public:
    void show()
    {
        cout << "id = " << id << ", name = " << name << ", age = " << age << endl;
    }
    // 类内部成员函数声明
    void setStu(int myid, string myname, int myage);
};

void Stu::setStu(int myid, string myname, int myage)
{
    id = myid;
    name = myname;
    age = myage;
}

int main()
{
    Stu stu;

    stu.setStu(1, "狗大哥", 18);
    stu.show();

    return 0;
}